/**
 * Copyright © 2017-2018 Beijing Audiotone Technology Co.,Ltd.
 * All Rights Reserved.
 * This software is the confidential and proprietary information of
 * Beijing Audiotone Technology Co.,Ltd.
 * ("Confidential Information"). You shall not disclose such
 * Confidential Information and shall use it only in accordance with
 * the terms of the license agreement you entered into with Audiotone.
 * AUDIOTONE MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF
 * THE SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
 * TO THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
 * PARTICULAR PURPOSE, OR NON-INFRINGEMENT. AUDIOTONE SHALL NOT BE LIABLE FOR
 * ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR
 * DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES.
 */
package pro.uccs.constant;


import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @author songc
 */
@Component
public class OpenPlatformConstant {
//    阿里云
    /**
     * 获取令牌地址
     */
    public static String ACCESS_TOKEN_URI ;

    /**
     * 用户授权地址
     */
    public static String USER_AUTHORIZATION_URI ;

    /**
     * appid,开发者在开放平台上申请的应用id
     */
    public static String APP_ID ;

    /**
     * clientId 应用请求资源唯一id
     */
    public static String CLIENT_ID;

    /**
     *  client secret 应用请求资源唯一密钥
     */
    public static String CLIENT_SECRET ;

    /**
     * 开放平台应用回调地址
     */
    public static String PRESERVED_STATE ;

    /**
     * 开放平台资源请求地址
     */
    public static String RESOURCE_SERVER_URI ;

    /**
     * 开放平台资源请求地址
     */
    public static String SESSION ;

    /**
     * 开放平台快速授权接口
     */
    public static String OPEN_AUTHORIZE_PERSONAL ;

    public static String OPEN_CALLBACK_URL ;

    public static String OPEN_CALLBACK_TOKEN ;

    public static String OPEN_CALLBACK_DATA_KEY ;
    @Value("${OCConstant.ACCESS_TOKEN_URI}")
    public void setAccessTokenUri(String accessTokenUri){
        ACCESS_TOKEN_URI = accessTokenUri;
    }
    @Value("${OCConstant.CLIENT_ID}")
    public void setClientId(String clientId){
        CLIENT_ID = clientId;
    }
    @Value("${OCConstant.USER_AUTHORIZATION_URI}")
    public void setUserAuthorizationUri(String userAuthorizationUri){
        USER_AUTHORIZATION_URI = userAuthorizationUri;
    }
    public void setAppId(String appId){
        APP_ID = appId;
    }
    @Value("${OCConstant.CLIENT_SECRET}")
    public void setClientSecret(String clientSecret){
        CLIENT_SECRET = clientSecret;
    }
    @Value("${OCConstant.PRESERVED_STATE}")
    public void setPreservedState(String preservedState){
        PRESERVED_STATE = preservedState;
    }
    @Value("${OCConstant.RESOURCE_SERVER_URI}")
    public void setResourceServerUri(String resourceServerUri){
        RESOURCE_SERVER_URI = resourceServerUri;
    }
    @Value("${OCConstant.SESSION}")
    public void setSession(String session){
        SESSION = session;
    }
    @Value("${OCConstant.OPEN_AUTHORIZE_PERSONAL}")
    public void setOpenAuthorizePersonal(String openAuthorizePersonal){
        OPEN_AUTHORIZE_PERSONAL = openAuthorizePersonal;
    }
    @Value("${OCConstant.OPEN_CALLBACK_URL}")
    public void setOpenCallbackUrl(String openCallbackUrl){
        OPEN_CALLBACK_URL = openCallbackUrl;
    }

    @Value("${OCConstant.OPEN_CALLBACK_TOKEN}")
    public void setOpenCallbackToken(String openCallbackToken){
        OPEN_CALLBACK_TOKEN = openCallbackToken;
    }

    @Value("${OCConstant.OPEN_CALLBACK_DATA_KEY}")
    public void setOpenCallbackDataKey(String openCallbackDataKey){
        OPEN_CALLBACK_DATA_KEY = openCallbackDataKey;
    }}
